all: aufgabe2

aufgabe2: 
	$(CXX) -c -Wall process1.cpp
	$(CXX) -L /usr/lib/ process1.o -o process1 -lrt
	$(CXX) -c -Wall process2.cpp
	$(CXX) -L /usr/lib/ process2.o -o process2 -lrt

test-process1: process1
	./process1

test-process2: process2
	./process2

valgrind-process1:
	valgrind ./process1

valgrind-process2:
	valgrind ./process2

valgrind-deep-process1:
	valgrind --leak-check=full ./process1

valgrind-deep-process2:
	valgrind --leak-check=full ./process2

clean: 
	rm -f process1
	rm -f process1.o
	rm -f process2
	rm -f process2.o
